// 发布者
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { axiosService } from '@/http/sever'

export const usePublisherStore = defineStore('publisher', () => {
    // 发布者游戏列表
    const gameList = ref<any>([])
    const getGameList = async () => {
        const res = await axiosService.post('/api/publisher/Game/gameList')
        gameList.value = res.data
    }

    return {
        // 状态
        gameList,
        // 方法
        getGameList
    }
})
